<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">开心吧运行状态</h3>
    </div>
    <div class="panel-body">
        <ul class="list-unstyled statistics" id="static">
        </ul>
    </div>
</div>
<script type="text/javascript">
$(function(){
getStatic();
});
function getStatic(){
	$.ajax({
   type: "POST",
   async: false,
   cache: false,
   url: "static!getStatic",
   dataType : "json",
   success: function(data){
  var result =  data.static;
  var html = "<li>最新会员："+result.latestreg+"</li><li>注册会员："+result.usernum+"</li><li>今日话题："+result.curtopicnum+"</li><li>话题总数："+result.topicnum+"</li><li>回复总数："+result.replynum+"</li>"
  +"<li>论坛运行时间："+result.days+"天	</li>";
   $("#static").html(html);
   }
});
}
</script>